package com.mars.btrace.demo;

import com.sun.btrace.BTraceUtils;
import com.sun.btrace.annotations.*;

/**
 * author by: mars
 * Date: 2019/5/25 22:56
 * Description: 拦截行
 */
@BTrace
public class BtraceDemo6 {

    @OnMethod(
            clazz = "com.mars.btrace.controller.UserController",
            location = @Location(value = Kind.LINE,line = 82)
    )
    public static void anyRead(@ProbeClassName String pcn ,
                               @ProbeMethodName String pmn,
                               int line){
        BTraceUtils.println(pcn + "," + pmn + "," +line);
    }


}
